{extend name="default/base/base_home" /}
{block name="mall_main"}
{notpresent name='editable_page'}
<link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_activity.css">
<div class="dsh-activity">
    <div class="activity_detail" style="background-image: url({:ds_get_pic(ATTACH_ACTIVITY,$activity.activity_banner)})">
        <div class="p_info">
            <p class="p_name">{$activity.activity_title}</p>
            <p class="p_time">{$activity.activity_startdate|date='Y-m-d'} {$Think.lang.activity_to} {$activity.activity_enddate|date='Y-m-d'}</p>
            <p class="p_desc">{$activity.activity_desc}</p>
        </div>
    </div>
    <div class="activity_show" id="sale">
        {notempty name="activitydetail_list"}
        <ul class="list_pic">
            {foreach name="activitydetail_list" item="v"}
            <li>
                <dl>
                    <dt><a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank"><img src="{:goods_thumb($v, 240);}"/></a></dt>
                    <dd class="p_name"><a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank" title="{$v.goods_name}">{$v.goods_name}</a></dd>
                    <dd class="p_info">
                        <span class="p_price">{:ds_price_format_forlist($v['goods_price'])}</span>
                        <a class="p_buy" href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank">{$Think.lang.activity_buy_now}</a>
                    </dd>
                </dl>
            </li>
            {/foreach}
        </ul>
        {/notempty}
    </div>
</div>
{else}
<script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
<script>
    var EDITABLE_PAGE_URL='{$Think.ADMIN_SITE_URL}/editable_page'
</script>
{include file="default/base/editable_page_model/common"}
{/notpresent}
{/block}